#include "main.h"

#include "rcc.h"
#include "delay.h"
#include "EPD_init.h"
#include "EPD_Fun.h"
#include "EPD_Photo.h"

int main(void)
{
	uint16_t i = 0;
	SystemClock_Init();
	NVIC_SetPriorityGrouping(2);
	EPD_Init();
	EPD_Clear(WHITE);
	EPD_DrawPoint(10,22,BLACK);
	EPD_DrawLine(1,200,1,1,1,BLACK);
	EPD_Update();
	EPD_Display();
	delay_ms(2000);
	EPD_DrawLine(1,1,200,1,3,BLACK);
	EPD_Update();
	EPD_Display();
	delay_ms(2000);
	EPD_DrawLine(200,1,1,200,5,BLACK);
	EPD_Update();
	EPD_Display();
	delay_ms(2000);
	EPD_ShowPicture(1,1,Image,200,200);
	EPD_Update();
	EPD_Display();
	delay_ms(2000);
	EPD_DrawLine(200,1,1,200,1,BLACK);
	EPD_Clear(WHITE);
	EPD_Update();
	EPD_Display();
//	NVIC_SetPriority(SysTick_IRQn)
	while (1)
	{
		
//		EPD_ShowPicture(i,0,gImage_111,50,50);
//		EPD_Update();
//		EPD_Display();
//		delay_ms(1000);
//		i++;
//		if(i >= 149)
//		{
//			i = 0;
//		}
	}
}



	
	




